<?php
include 'database.php'; //数据库的配置信息
require 'lianjie.php';  // 数据库的操作函数
$con = lianjieshujuku($servername, $name, $passwd);//连接数据库

$newpassword = $_GET['password'];
$username = $_GET['username'];
if (!mysqli_select_db($con, 'floweruser')) {
    die("选择数据库失败");
}
$req = mysqli_query($con, "UPDATE `user` SET `password`='$newpassword' WHERE `username` = '$username'");
